.ant-layout {
  background: #fff;
}

.ant-layout-sider {
  background: #fff;
  transition: all 0.3s ease !important;
}

.ant-layout-content {
  position: relative;
  background: #fff;
}

.app-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-container > .ant-layout {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  position: relative;
  height: 100%;
}

.terminal-container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.file-browser-container {
  width: 100%;
  background: #fff;
  border-top: 1px solid #e8e8e8;
  overflow: hidden;
}

.ai-sider {
  height: 100%;
  border-left: 1px solid #e8e8e8;
  background: #fff !important;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1) !important;
  position: relative;
  z-index: 2;
}

/* 修改折叠方向 */
.ant-layout-has-sider > .ant-layout-sider-has-trigger {
  padding-right: 0 !important;
}

.ant-layout-sider-children {
  width: 100% !important;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1) !important;
}

.ant-layout-sider.ai-sider {
  right: 0 !important;
  position: relative !important;
}

.resize-handle {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  cursor: col-resize;
  background-color: transparent;
  transition: all 0.3s ease;
  z-index: 10;
  /* 增加点击区域 */
  margin-left: -2px;
  /* 添加一个细线指示器 */
  border-left: 1px solid rgba(24, 144, 255, 0.2);
}

.resize-handle:hover {
  background-color: rgba(24, 144, 255, 0.3);
  border-left-color: #1890ff;
  border-left-width: 2px;
}

.ai-assistant-container {
  height: 100%;
  background: #fff;
  overflow: hidden;
  position: relative;
}

/* 调整分割条样式 */
.main-content .react-resizable-handle {
  height: 6px;
  background: #f0f0f0;
  cursor: row-resize;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.main-content .react-resizable-handle:hover {
  background: #e0e0e0;
}

/* 隐藏 Sider 的默认触发器 */
.ant-layout-sider-trigger {
  display: none !important;
}

/* 确保状态栏在最底部 */
.app-status-bar {
  flex: none;
}

/* 工具栏样式 */
.app-toolbar {
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-color, #e8e8e8);
}

/* 确保内容区域正确填充 */
.ant-layout {
  height: 100%;
}

.ant-layout-content {
  display: flex;
  flex-direction: column;
}

.app-toolbar-sider {
  background-color: #ffffff;
  border-right: 1px solid #e8e8e8;
  z-index: 1000;
}

.app-toolbar-sider .ant-layout-sider-children {
  display: flex;
  flex-direction: column;
  height: 100%;
} 